#include<fcntl.h>
#include<unistd.h>
class Util{
    public:
    static void setNonBlocking(int fd){
        int flags=fcntl(fd, F_GETFL, 0);
        fcntl(fd, F_SETFL, flags | O_NONBLOCK);
    }
};